import { request } from '$lib/utils/request/request-browser';
import type { loginForm } from '$lib/api/types/user'
//统一管理接口
enum API {
	LOGIN_URL = '/auth/login',
	UserInfo_URL = "/itp/api/menu/find/currentUser", 
}
//登录接口方法
export const reqLogin = (data: loginForm) => request.post(API.LOGIN_URL, data);
//获取用户及权限信息
export const reqUserInfo = () => request.get(`${API.UserInfo_URL}?dictMenuPlan=1&isShow=0`);
